import requests
def face_compare(API_key,API_secret,face_tokens01,face_tokens02):
    """该函数为调用face++ face_compare接口"""
    url = "https://api-cn.faceplusplus.com/facepp/v3/compare"
    payload = {
        'api_key':API_key,
        'api_secret':API_secret,
        'face_token1':face_token01,
        'face_token2':face_token02
    }
    r = requests.post(url, params = payload,face_token1,face_token2)
    return r.json()